

import React, { Component } from 'react'

export default class index extends Component {

  chuan=(str)=>{
    console.log("传来的值",str);
  }
  
  

  render() {
    return (
      <div>
        <h1>子组件</h1>
      </div>
    )
  }
}
